<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	@@include('public/title.html')
	<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
	<link href="../../css/bootstrap.min.css" rel="stylesheet">
	<link href="css/nifty.min.css" rel="stylesheet">
	<link href="../../css/demo/nifty-demo-icons.min.css" rel="stylesheet">
	<link href="../../plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<link href="../../plugins/pace/pace.min.css" rel="stylesheet">
	<link href="../../plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
	<script src="../../plugins/pace/pace.min.js?2016/8/5"></script>
	<style>
		th,td{
			text-align: center;
		}
	</style>
	<script src="../../js/jquery-2.2.1.min.js"></script>

</head>

<!--TIPS-->
<!--You may remove all ID or Class names which contain "demo-", they are only used for demonstration. -->

<body id="main">
<div id="container" class="effect mainnav-lg">
	@@include('public/header.html')
	
	<div class="boxed">
		<nav id="mainnav-container">
			@@include('public/left_menu.html')
		</nav>
		
		<div id="content-container">
			<div id="page-title">
				<h1 class="page-header text-overflow">订单数据</h1>
			</div>
			
			<div class="page-content">
				<style>
					.page-wrapper{
						padding:20px;
					}
					.page-wrapper > h4{
						margin:7.5px;
						margin-bottom:15px;
					}
					.page-wrapper:after{
						content:"";
						display:block;
						clear: both;
					}
				</style>
				
				<!--回收业务-->
				<div class="page-wrapper">
					<h4>回收订单</h4>
					<div class="col-sm-3 eq-box-sm"
					     onclick="location.href='recycle_order_detail.html?status=-1'">
						<div class="panel text-center">
							<h4>全部订单</h4>
							<h3 class="panel-body" v-text="recycleOrder.total"></h3>
						</div>
					</div>
					
					<div class="col-sm-3 eq-box-sm"
					     onclick="location.href='recycle_order_detail.html?status=0'">
						<div class="panel text-center">
							<h4>待处理订单</h4>
							<h3 class="panel-body" v-text="recycleOrder.waiting_handle"></h3>
						</div>
					</div>
					
					<div class="col-sm-3 eq-box-sm"
					     onclick="location.href='recycle_order_detail.html?status=1'">
						<div class="panel text-center">
							<h4>待接单</h4>
							<h3 class="panel-body" v-text="recycleOrder.waiting_list"></h3>
						</div>
					</div>
					
					<div class="col-sm-3 eq-box-sm"
					     onclick="location.href='recycle_order_detail.html?status=2'">
						<div class="panel text-center">
							<h4>待回收</h4>
							<h3 class="panel-body" v-text="recycleOrder.waiting_recycle"></h3>
						</div>
					</div>
					
					<div class="col-sm-3 eq-box-sm"
					     onclick="location.href='recycle_order_detail.html?status=3'">
						<div class="panel text-center">
							<h4>待确认</h4>
							<h3 class="panel-body" v-text="recycleOrder.waiting_confirm"></h3>
						</div>
					</div>
					
					<div class="col-sm-3 eq-box-sm"
					     onclick="location.href='recycle_order_detail.html?status=6'">
						<div class="panel text-center">
							<h4>已完成</h4>
							<h3 class="panel-body" v-text="recycleOrder.completed"></h3>
						</div>
					</div>
				</div>
				<!--回收业务-->
			</div>
		</div>
	</div>
</div>
@@include('public/footer.html')
<script src="../../plugins/sparkline/jquery.sparkline.min.js"></script>
<script src="../../plugins/vue/vue.min.js"></script>
<script src="../../plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="../../plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script>
<script>
	var vue = new Vue({
		el:"#main",
		data:{
			recycleOrder:{},
			repairOrder:{}
		},
		method:{
		
		},
		ready:function(){
			$.get(apiRecycle+"partner.php/Admin/Order/recycle_order_count", {}, function(res){
				vue.recycleOrder = res.data;
			}, "json");
		}
	});
</script>
</body>
</html>
